package com.etc.service;

import com.aliyuncs.exceptions.ClientException;
import com.etc.pojo.user.User;
import com.github.pagehelper.PageInfo;
import java.util.List;

public interface UserService {
    List<User> findByAll();

    Integer deleteById(int id);

    User findByUsername(User user);
    Integer insertUser(User user);


    /**
     * 分页操作，调用findByPage limit分页方法
     * @param
     * @return
     */
    PageInfo<User> findByPage(int pageNo, int pageSize);
    String messageAcquisition(String phoneNumbers) throws ClientException;
    Integer yanzheng(String phoneNumbers,String yanzheng);
}
